<extend name="Public/base" />

<block name="body">
	<div class="main-title cf">
		<h2><if condition="ACTION_NAME eq 'addDepartment'">新增<else/>编辑</if>部门</h2>
	</div>
	<!-- 表单 -->
	<form id="form" action="{:U('saveDepartment')}" method="post" class="form-horizontal">
		<div class="form-item cf">
			<label class="item-label">部门名称<span class="check-tips">（输入部门名称）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="title" value="{$data.title}">
			</div>
		</div>

		<div class="form-item">
			<input type="hidden" name="id" value="{$data.id}"/>
			<button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</block>

<block name="script">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript" charset="utf-8">
    //导航高亮
    highlight_subnav('{:U("User/department")}');
</script>
</block>
